package com.jh.loadbalance.server;


import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication // 标准 Spring Boot 应用
@EnableDiscoveryClient // 激活服务发现客户端
@EnableHystrix // 激活熔断
@EnableAspectJAutoProxy(proxyTargetClass = true) // 激活AOP，将代理改成CGLIB，允许代理类
public class Application {
    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }
}
